<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/template/common/header.jsp"%>
<div class="pageHeader" style="border: 1px #B8D0D6 solid">
	<form onsubmit="return divSearch(this,'index-list-box');"
		action="${base }/adver!list.action" method="post" rel="pagerForm">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>标题<input type="text" name="adver.title"
						value="${adver.title }" alt="请输入标题 " size="30" /></td>
					<td><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">检索</button>
							</div>
						</div></td>
				</tr>
			</table>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${base }/adver!add.action"
				target="dialog" rel="adver_add" mask="true"><span>添加广告</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="260" rel="index-list-box">
		<thead>
			<tr>
				<th width="80">标题</th>
				<th width="40">链接</th>
				<th width="20">序号</th>
				<th width="20">创建时间</th>
				<th width="40">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${advers }" var="adver">
				<tr target="adver" rel="${ adver.id}">
					<td>${adver.title }</td>
					<td><a href="${adver.url }" target="_blank">${adver.url }</a></td>
					<td>${adver.orders }</td>
					<td><fmt:formatDate value="${adver.createDate }"
							pattern="yyyy-MM-dd HH:mm:ss" /></td>
					<td><a class="btnEdit"
						href="${base }/adver!edit.action?adver.id=${adver.id}"
						target="dialog" rel="adver_edit" mask="true"><span>编辑</span></a><a
						class="btnDel"
						href="${base }/adver!delete.action?adver.id=${adver.id}"
						target="ajaxTodo" title="确定删除-${adver.title}"
						rel="adver_delete"><span>删除</span></a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<cy:pagination pageBean="${pager }" pageUrl="${base }/adver!list.action">
	<%@include file="/WEB-INF/template/common/pagination.jsp"%>
</cy:pagination>